package com.book.practise.controller;

import com.book.practise.dao.BookDao;
import com.book.practise.medol.BookInfo;
import com.book.practise.service.BookService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-11-18
 * Time: 19:34
 */
@RequestMapping("/book")
@RestController
public class BookController {
    @RequestMapping("getList")
    public List<BookInfo> getList(){
        BookService bookService = new BookService();
        return bookService.getList();
    }


}
